/*!
 * \file inlineRect.h
 * \brief Rectangle class.
 * \warning Do not include directly.
 * \author Nus
 * \date 2008/03/10, 01:27
 */

// Assign operator.
nuRect& nuRect::operator = (const nuRect& rr)
{
  OriginX = rr.OriginX;
  OriginY = rr.OriginY;
  Width = rr.Width;
  Height = rr.Height;
  return *this;
}

// Get top-left point.
nuPoint nuRect::getTopLeft(void) const
{
  nuPoint tl;
  tl.X = OriginX;
  tl.Y = OriginY;
  return tl;
}

// Get top-right point.
nuPoint nuRect::getTopRight(void) const
{
  nuPoint tr;
  tr.X = OriginX + Width;
  tr.Y = OriginY;
  return tr;
}

// Get bottom-left point.
nuPoint nuRect::getBottomLeft(void) const
{
  nuPoint bl;
  bl.X = OriginX;
  bl.Y = OriginY + Height;
  return bl;
}

// Get bottom-right point.
nuPoint nuRect::getBottomRight(void) const
{
  nuPoint br;
  br.X = OriginX + Width;
  br.Y = OriginY + Height;
  return br;
}
